package Controler;

import java.io.*;
import java.util.Scanner;
import java.util.StringTokenizer;

public class readfile {

	public String read(int i) throws IOException {
		
		String line = "";
		int cpt=0;
		BufferedReader textfile;
		try {
			textfile = new BufferedReader(new FileReader(new File("list.txt")));
			do {
				line = textfile.readLine();
				cpt++;
			} while (cpt != i);
			textfile.close();
		} catch (FileNotFoundException e) {
			System.out.println(e.getMessage());
		} catch (IOException e) {
			System.out.println(e.getMessage());
		}
		return line;
	}	
}
